package com.example.demo.repo.model;

public class Order {

    public static enum OrderStatus {
        not_pay, // 未支付
        paying, // 支付中
        payed, // 已支付
        pay_fail, // 支付失败
        timeout, // 超时未支付
        low_stocks, // 库存不足
        ;
    }

    // 订单号
    private Long orderId;
    // 订单状态
    private OrderStatus orderStatus;
    // 商品号
    private Long productId;
    // 商品数
    private Integer numbers;
    // 商品价格
    private Integer price;
    // 创建时间
    private Long createTime;

    private Long updateTime;

    private String msg;

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderStatus=" + orderStatus +
                ", productId=" + productId +
                ", numbers=" + numbers +
                ", price=" + price +
                ", msg='" + msg + '\'' +
                '}';
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getNumbers() {
        return numbers;
    }

    public void setNumbers(Integer numbers) {
        this.numbers = numbers;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
